package com.example.demo.service.impl;


import com.example.demo.entity.BlogRecycle;
import com.example.demo.service.BlogRecycleService;
import com.example.demo.mapper.BlogRecycleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 *
 */
@Service
public class BlogRecycleServiceImpl implements BlogRecycleService{
    @Resource
    private BlogRecycleMapper blogRecycleMapper;


    @Override
    public List<BlogRecycle> getlist(Integer uid) {
        return blogRecycleMapper.getlist(uid);
    }

    @Override
    public int add(BlogRecycle blogRecycle) {
        return blogRecycleMapper.add(blogRecycle);
    }

    @Override
    public BlogRecycle getBlogRecycleById(Integer id) {
        return blogRecycleMapper.getBlogRecycleById(id);
    }

    @Override
    public int delete(Integer id, Integer uid) {
        return blogRecycleMapper.delete(id,uid);
    }

    @Override
    public int deleteForever(Integer id, Integer uid) {
        return blogRecycleMapper.deleteForever(id,uid);
    }
}




